//
//  homePageModel.h
//  giuseppe
//
//  Created by Apple on 15/8/18.
//  Copyright (c) 2015年 GiantUmbrella. All rights reserved.
//

#import "baseModel.h"

@interface homePageModel : baseModel


/*
{
    “resultCode”: 0 or 1 or other value,
    “adList": [ //返回首页banner图片地址，有多少张返回多少个值，app启动第一次没得到图片会用默认值显示
    {
        “bannerImageUrl1”: “图片地址1”,
    },{
        
        “bannerImageUrl2”: “图片地址2”,
    }
    ],
    
    
    “dataList": [ //推荐的套装数据
    {
        “suitURL”: “首页推荐套装的URL”,
        “brief”: “首页推荐套装的描述”,
        “amount”: “首页推荐套装已卖出去多少件”,
        “suitId”: “首页推荐套装标识符号”
    },
    {
        “suitURL”: “首页推荐套装的URL”,
        “brief”: “首页推荐套装的描述”,
        “amount”: “首页推荐套装已卖出去多少件”,
        “suitId”: “首页推荐套装标识符号”
    }
    ],
    "msg": “信息获取结果文字描述！”,// 根据 resultCode的值不同返回不同的描述
}
 
 
 服务器返回数据为:{
 adList =     (
 {
 bannerimageurl = "http://ziyouzu.oss-cn-hangzhou.aliyuncs.com/data/index_show/549d1bd8e921c.jpg";
 goodsid = 13;
 },
 {
 bannerimageurl = "http://ziyouzu.oss-cn-hangzhou.aliyuncs.com/data/index_show/549d1bd8e921c.jpg";
 goodsid = 15;
 },
 {
 bannerimageurl = "http://ziyouzu.oss-cn-hangzhou.aliyuncs.com/data/index_show/549d1bd8e921c.jpg";
 goodsid = 16;
 }
 );
 dataList =     (
 {
 amount = 4000;
 brief = "\U4e00\U4e2d\U79cb\U5b63\U6821\U670d";
 price = 300;
 suitid = 16;
 suiturl = "http://ziyouzu.oss-cn-hangzhou.aliyuncs.com/data/index_show/549d1bd8e921c.jpg";
 },
 {
 amount = 133;
 brief = "\U4e00\U4e2d\U6821\U670d";
 price = "223.4";
 suitid = 13;
 suiturl = "http://ziyouzu.oss-cn-hangzhou.aliyuncs.com/data/index_show/549d1bd8e921c.jpg";
 }
 );
 msg = "\U9996\U9875\U5217\U8868\U83b7\U53d6\U6210\U529f";
 resultCode = 0;
 } and 消息内容是:(null)
 2015-08-26 17:54:41.743 uniform[32644:1396513] {
 adList =     (
 {
 bannerimageurl = "http://ziyouzu.oss-cn-hangzhou.aliyuncs.com/data/index_show/549d1bd8e921c.jpg";
 goodsid = 13;
 },
 {
 bannerimageurl = "http://ziyouzu.oss-cn-hangzhou.aliyuncs.com/data/index_show/549d1bd8e921c.jpg";
 goodsid = 15;
 },
 {
 bannerimageurl = "http://ziyouzu.oss-cn-hangzhou.aliyuncs.com/data/index_show/549d1bd8e921c.jpg";
 goodsid = 16;
 }
 );
 dataList =     (
 {
 amount = 4000;
 brief = "\U4e00\U4e2d\U79cb\U5b63\U6821\U670d";
 price = 300;
 suitid = 16;
 suiturl = "http://ziyouzu.oss-cn-hangzhou.aliyuncs.com/data/index_show/549d1bd8e921c.jpg";
 },
 {
 amount = 133;
 brief = "\U4e00\U4e2d\U6821\U670d";
 price = "223.4";
 suitid = 13;
 suiturl = "http://ziyouzu.oss-cn-hangzhou.aliyuncs.com/data/index_show/549d1bd8e921c.jpg";
 }
 );
 msg = "\U9996\U9875\U5217\U8868\U83b7\U53d6\U6210\U529f";
 resultCode = 0;
 }

*/

+(homePageModel *)order;




@property(copy,nonatomic)NSString *suiturl;
@property(copy,nonatomic)NSString *brief;
@property(copy,nonatomic)NSString *amount;
@property(copy,nonatomic)NSString *suitid;
@property(copy,nonatomic)NSString *price;

+ (instancetype) initWithDicAttributes:(NSDictionary *)dic; //封装




@end
